﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Collections.ObjectModel;

using Elegant.Ui;

namespace iPdf
{
    /// <summary>
    /// The DropDown menu control with customized items to fit our need
    /// </summary>
    [System.ComponentModel.ToolboxItem(true)]
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1708:IdentifiersShouldDifferByMoreThanCase")]
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1708:IdentifiersShouldDifferByMoreThanCase")]
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1708:IdentifiersShouldDifferByMoreThanCase")]
    partial class TataDropDown : Elegant.Ui.SplitButton
    {
        #region Ctor
        public TataDropDown(): base()
        {
            attachItems = new Collection<TataDropDownItem>();
            this.IsPopupOpenChanging += new EventHandler<IsPopupOpenChangingEventArgs>(
                delegate(object sender, IsPopupOpenChangingEventArgs e)
                {
                    if (e.NewIsPopupOpenValue == true)
                    {
                        this.RefreshMenuItems();
                    }
                });
        }

        #endregion
    }
}
